﻿// -----------------------------------------------------------------------
// <copyright file="IRepository.cs" company="LifeMed">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

using System;
using System.Collections.Generic;

namespace LifeMed.Data.Core.Repository
{
    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public interface IRepository<T>  where T : class
    {
        void Add(T entity);
        void Delete(T entity);
        T GetById(long id);
        T Get(Func<T, Boolean> where);
        IEnumerable<T> GetAll();
        IEnumerable<T> GetMany(Func<T, bool> where);
    }
}
